<?php

namespace Openfennec\CoreBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class UserController extends Controller
{
    public function viewAction($username)
    {
        $site = $this->getDoctrine()->getRepository("OpenfennecCoreBundle:Site")->find(1);
        $user = $this->getDoctrine()->getRepository("OpenfennecCoreBundle:User")->findOneByUsername($username);
        
        return $this->render("OpenfennecCoreBundle:User:view.html.twig", array(
            "site" => $site,
            "user" => $user,
        ));
    }

    public function editAction()
    {
    }

    public function deleteAction()
    {
    }

}
